-- GENERATED SPELL FOR [Dal Bloodclaw] --


function spell0_3987(pUnit, Event) --@Disarm,n/a--
pUnit:FullCastSpellOnTarget(6713,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3987', 5345, 1)
end

function spell1_3987(pUnit, Event) --@Revenge,n/a--
pUnit:FullCastSpellOnTarget(12170,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3987', 553, 1)
end

function Sorts_3987(pUnit, Event)
local choix_sorts_3987 = math.random(0, 1)
if choix_sorts_3987 == 0 then
pUnit:RegisterEvent('spell0_3987', 1, 1)
end
if choix_sorts_3987 == 1 then
pUnit:RegisterEvent('spell1_3987', 1, 1)
end
end

function mob3987_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3987', math.random(1500, 3000), 1)
end

function mob3987_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3987_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3987_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3987, 1, 'mob3987_Action')
RegisterUnitEvent(3987, 2, 'mob3987_Leave')
RegisterUnitEvent(3987, 3, 'mob3987_Kill')
RegisterUnitEvent(3987, 4, 'mob3987_Die')
